Write the rule cousin1(Child1,Child2) that is true if Child1 and Child2 are first cousins. 1See https://en.wikipedia.org/wiki/Cousin for more explanation 1 (b) [1 mark]...

profilelaksai

Write the rule cousin1(Child1,Child2) that is true if Child1 and Child2 are first cousins.
1See https://en.wikipedia.org/wiki/Cousin for more explanation
1
(b) [1 mark] Write the rule cousin2(Child1,Child2) that is true if Child1 and Child2 are second cousins.
(c) [1 mark] Write the general rule cousin(N,Child1,Child2) that is true if Child1 and Child2 are Nth cousins. So cousin1(Child1,Child2) ≡ cousin(1,Child1,Child2) and cousin2(Child1,Child2) ≡ cousin(2,Child1,Child2) and so on for third and fourth and even higher level cousins.

    • 11 years ago
    • 999999.99
    Answer(0)
    Bids(0)